package com.tjetc.service;

import java.util.List;

import com.tjetc.domian.Communityevent;
import com.tjetc.vo.Result;

public interface CommunityeventService {
    List<Communityevent> list();

    Result add(Communityevent communityevent);

    Result update(Communityevent communityevent);

    Result del(int id);


    Result join(int eventId, String name);

    Result cancel(int eventId, String name);

    List<Communityevent> findByEventNameLike(String eventName);

    List<Communityevent> findByEventDate(String eventDate);

    List<Communityevent> findByDateRange(String startDate, String endDate);

    List<Communityevent> findByLocationLike(String location);
}
